import request from "@/utils/request";

// 查询楼栋分页数据
export const queryBuildingPageApi = (params) => request.post("/building/page", params);

// 查询全部楼栋
export const queryBuildingAllApi = () => request.get("/building/list");

// 新增楼栋
export const addBuildingApi = (building) => request.post("/building", building);

// 根据ID查询楼栋
export const queryBuildingByIdApi = (id) => request.get(`/building/${id}`);

// 修改楼栋
export const updateBuildingApi = (building) => request.put("/building", building);

// 删除楼栋
export const deleteBuildingApi = (id) => request.delete(`/building/${id}`); 